import request from "@/utils/request";
export const $deviceCount=()=>{
    return request.get("/device/count");
}

export const $sensorCount=()=>{
    return request.get("/sensor/count");
}

export const $gatewayList=(params)=>{
    console.log(params);
    return request.get("/gateway/list",{params});
}
// 节点群组api
// 列表
export const $groupList = (params) => {
    console.log(params);
    return request.get("/group/list",{params});
}
// 添加
export const $groupAdd=(data)=>{
    return request.post("/group/add",data);
}
// 修改
export const $groupEdit=(data)=>{
    return request.post("/group/edit",data);
}
// 删除
export const $groupDel=(data)=>{
    return request.post("/group/del",data);
}

export const $sensorList = (params) => {
    return request.get("/sensor/list",params);
}
//子账号列表
export const $accountList=()=>{
    return request.get("/account/list")
}
//设备数据列表
export const $deviceSensorList=()=>{
    return request.get("/device/sensorList");
}
// 登录API
export const $accountLogin=(data)=>{
    return request.post("/account/login", data)
}